//订单相关的接口函数
import request from "../utils/request"

//带查询功能的订单列表
export const orderList =(params)=>{
    return request.get("/order/list",{params})
}

//修改订单
export const orderEdit =(data)=>{
    return request.post("/order/edit",data)
}

//获取订单详情
export const orderEetail =(id)=>{
    return request.get("/order/detail",{params:{id}})
}


//获取首页数据

export const totalData =(params)=>{
    return request.get("/order/totaldata",{params})
}

//订单报表接口

export const orderTotal =(params)=>{
    return request.get("/order/ordertotal",{params})
}

//暴露第一种方法
export default{
    orderList,
    orderEdit,
    orderEetail,
    totalData,
    orderTotal
}